<?php
// admin

Route::get('/', 'Index@index')->name('admin.index');

Route::post('/in', 'Sign@webIn');
Route::get('/out', 'Sign@webOut');

// Route::middleware(['auth:admin'])->group(function () {
Route::group(['prefix' => '/'], function () {
    
    Route::group(['prefix' => 'imgs'], function () {
        // 上传图片
        Route::post('/upimg', 'Imgs@upimg');

        Route::post('/{type}', 'Imgs@new');
        Route::get('/{type}', 'Imgs@get');
        Route::put('/{type}', 'Imgs@put');
    });

    // 发展历程
    Route::group(['prefix' => 'developHistory'], function () {
        Route::post('/', 'DevelopHistory@new');
        Route::get('/', 'DevelopHistory@get');
        Route::put('/', 'DevelopHistory@put');
    });

    // 文章相关
    Route::group(['prefix' => 'article'], function () {
        Route::get('/list', 'Article@list');
        Route::get('/info', 'Article@info');
        Route::post('/new', 'Article@new');
        Route::put('/put', 'Article@put');
    });

    Route::group(['prefix' => 'setting'], function () {
        Route::get('/{name}', 'Setting@get');
        Route::post('/{name}', 'Setting@post');
    });

});
